#include"enemyfalling.h"


Enemyfalling::Enemyfalling(QPoint _pos, QPixmap _pixmap)
{
    this->movespeed=5;
    this->setPos(_pos);
    this->setPixmap(_pixmap);
}

void Enemyfalling::EnemyfallingMove(QPoint _dir)
{
    this->moveBy(_dir.x()*movespeed,_dir.y()*movespeed);
}

void Enemyfalling::Init(QPoint _pos, QPixmap _pixmap)
{

    this->setPos(_pos);
    this->setPixmap(_pixmap);
    this->movespeed=5;
}
